<script type="text/html" template lay-done="layui.data.done(d);">
<div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-CoreCmsUserServicesOrder-createForm" id="LAY-app-CoreCmsUserServicesOrder-createForm">
	
	<div class="layui-form-item">
        <label for="id" class="layui-form-label  layui-form-required">序列</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="id"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入序列" lay-reqText="请输入序列并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="serviceOrderId" class="layui-form-label  layui-form-required">服务订单编号</label>
        <div class="layui-input-block">
        <input name="serviceOrderId"   lay-verType="tips" lay-verify="required|verifyserviceOrderId" class="layui-input"  lay-reqText="请输入服务订单编号" placeholder="请输入服务订单编号"/>
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="userId" class="layui-form-label  layui-form-required">关联用户</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="userId"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入关联用户" lay-reqText="请输入关联用户并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="servicesId" class="layui-form-label  layui-form-required">关联服务</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="servicesId"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入关联服务" lay-reqText="请输入关联服务并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item" pane>
        <label for="isPay" class="layui-form-label  layui-form-required">是否支付</label>
        <div class="layui-input-block">
            <input type="checkbox" lay-filter="switch" name="isPay"   lay-skin="switch" lay-text="开启|关闭">
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="payTime" class="layui-form-label  layui-form-required">支付时间</label>
        <div class="layui-input-block">
            <input name="payTime"  id="createTime-CoreCmsUserServicesOrder-payTime" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入支付时间" lay-reqText="请输入支付时间"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="paymentId" class="layui-form-label  layui-form-required">支付单号</label>
        <div class="layui-input-block">
        <input name="paymentId"   lay-verType="tips" lay-verify="required|verifypaymentId" class="layui-input"  lay-reqText="请输入支付单号" placeholder="请输入支付单号"/>
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="status" class="layui-form-label  layui-form-required">状态</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="status"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入状态" lay-reqText="请输入状态并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="createTime" class="layui-form-label  layui-form-required">订单创建时间</label>
        <div class="layui-input-block">
            <input name="createTime"  id="createTime-CoreCmsUserServicesOrder-createTime" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入订单创建时间" lay-reqText="请输入订单创建时间"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="servicesEndTime" class="layui-form-label  layui-form-required">截止服务时间</label>
        <div class="layui-input-block">
            <input name="servicesEndTime"  id="createTime-CoreCmsUserServicesOrder-servicesEndTime" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入截止服务时间" lay-reqText="请输入截止服务时间"  />
        </div>
    </div>
	
      <div class="layui-form-item text-right core-hidden">
        <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-CoreCmsUserServicesOrder-createForm-submit" id="LAY-app-CoreCmsUserServicesOrder-createForm-submit" value="确认添加">
    </div>
</div>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
        function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , laydate = layui.laydate
                , upload = layui.upload
                , cropperImg = layui.cropperImg
                , coreHelper = layui.coreHelper;
	        
            laydate.render({
                elem: '#createTime-CoreCmsUserServicesOrder-payTime',
                type: 'datetime'
            });
            laydate.render({
                elem: '#createTime-CoreCmsUserServicesOrder-createTime',
                type: 'datetime'
            });
            laydate.render({
                elem: '#createTime-CoreCmsUserServicesOrder-servicesEndTime',
                type: 'datetime'
            });
	        form.verify({
                
		        verifyserviceOrderId: [/^.{0,50}$/,'服务订单编号最大只允许输入50位字符'],
		        verifypaymentId: [/^.{0,50}$/,'支付单号最大只允许输入50位字符'],
	        });
            //重载form
            form.render(null, 'LAY-app-CoreCmsUserServicesOrder-createForm');
        })
    };
</script>
